package com.cande.loki.exercise.testspring;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.stereotype.Component;

import java.util.function.Predicate;

/**
 * @auther ROCK CODER
 * @DATE 2022/3/13 9:16
 * @Description
 */
@Component
public class ImportMethod2 implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{"com.cande.loki.exercise.testspring.User1"};
    }

    @Override
    public Predicate<String> getExclusionFilter() {
        return null;
    }
}
